package com.lbj.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbj.mall.common.utils.PageUtils;
import com.lbj.mall.product.entity.AttrEntity;
import com.lbj.mall.product.entity.AttrGroupEntity;
import com.lbj.mall.product.entity.vo.AttrGroupVo;
import com.lbj.mall.product.entity.vo.AttrIdAndAttrGroupIdVo;
import com.lbj.mall.product.entity.vo.AttrWithGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author libingjun
 * @email 617416791@qq.com
 * @date 2022-03-27 10:44:55
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    AttrGroupEntity getNewDataById(Long attrGroupId);

    List<Long> getCatelogPath(List<Long> catelogList, Long categoryId);

    List<AttrEntity> getAttrFromRelation(Long attrGroupId);

    void deleteAttrRelation(List<AttrIdAndAttrGroupIdVo> list);

    PageUtils getAttrGroupNoAttrList(Map<String, Object> params, Long attrGroupId);

    List<AttrWithGroupVo> getAttrWithGroupByCategoryId(Long categoryId);

    List<AttrGroupVo> getAttrWithGroupByCategoryIdAndSpuId(Long catalogId, Long spuId);
}

